package com.cryptoneedle.center.source.repository;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.bubbles.engine.data.core.repository.BaseRepository;
import com.cryptoneedle.center.source.entity.ConfigSystem;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>description: 配置系统 </p>
 *
 * @author CryptoNeedle
 * @date 2025-09-25
 */
@Repository
@DS("pg")
public interface ConfigSystemRepository extends BaseRepository<ConfigSystem, String> {

    @Query("FROM ConfigSystem ORDER BY name")
    List<ConfigSystem> list();
}